// Admin.java - 管理员类
package com.library.entity;

public class Admin extends User {
    private String adminId;
    private String realName;
    private String phone;

    public Admin(String adminId, String username, String password, String email, 
                 String realName, String phone) {
        super(username, password, email, UserRole.ADMIN);
        this.adminId = adminId;
        this.realName = realName;
        this.phone = phone;
    }

    public String getAdminId() { return adminId; }
    public void setAdminId(String adminId) { this.adminId = adminId; }

    public String getRealName() { return realName; }
    public void setRealName(String realName) { this.realName = realName; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
}
